<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <!-- <mate name="flexibel" content="initial-drl=2"/> -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <title>我的测算</title>
    <!-- <script>!function(e){function t(a){if(i[a])return i[a].exports;var n=i[a]={exports:{},id:a,loaded:!1};return e[a].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=window;t["default"]=i.flex=function(e,t){var a=e||100,n=t||1,r=i.document,o=navigator.userAgent,d=o.match(/Android[\S\s]+AppleWebkit\/(\d{3})/i),l=o.match(/U3\/((\d+|\.){5,})/i),c=l&&parseInt(l[1].split(".").join(""),10)>=80,p=navigator.appVersion.match(/(iphone|ipad|ipod)/gi),s=i.devicePixelRatio||1;p||d&&d[1]>534||c||(s=1);var u=1/s,m=r.querySelector('meta[name="viewport"]');m||(m=r.createElement("meta"),m.setAttribute("name","viewport"),r.head.appendChild(m)),m.setAttribute("content","width=device-width,user-scalable=no,initial-scale="+u+",maximum-scale="+u+",minimum-scale="+u),r.documentElement.style.fontSize=a/2*s*n+"px"},e.exports=t["default"]}]); flex(100, 1);</script> -->
    <!--[if lt IE 9]>  
        <script src="http://cdn.bootcss.com/html5shiv/r29/html5.js"></script>  
    <![endif]-->
    <script type="text/javascript" src="__PUBLIC__/js/rem.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/css/ZM_share.css"/>
    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <style>
        .public_orders_search {
            overflow: hidden;
            border: 1px solid #d3d3d3;
            margin: 10px;
            border-radius: 5px;
            background: #fff;
            padding: 10px;
            line-height: 24px;
        }
        .public_os_info {
            font-size: 14px;
            color: #333;
            line-height: 24px;
        }
        .public_os_form {
            overflow: hidden;
            margin: 4px 0 10px;
        }
        .public_os_form .input {
            padding-left: 5px;
            box-sizing: border-box;
            float: left;
            height: 35px;
            line-height: 35px;
            border: 1px solid #d7d7d7;
            border-right: none;
            width: 75%;
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
        }
        .public_os_form .btn {
            box-sizing: border-box;
            float: right;
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
            width: 25%;
            height: 35px;
            line-height: 35px;
            background-color: #f90;
            color: #fff;
            font-size: 18px;
            border: none;
        }
        .order_history {position: relative;}
        .oh_tit {
            height: 36px;
            background-color: #dac8b2;
            line-height: 36px;
            text-align: center;
            display: block;
            color: #333;
            margin: 8px 0 4px;
            border-radius: 4px;
        }
        .oh_list {overflow: hidden;}
        .oh_box {border-bottom: 1px solid #ddd;padding: 5px 0;}
        .oh_name {
            position: relative;
            padding-left: 60px;
            overflow: hidden;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            height: 26px;
            line-height: 26px;
            text-align: right;
        }
        .oh_name span {
            position: absolute;
            left: 0;
            top: 0;
            height: 26px;
            width: 60px;
            text-align: left;
        }

        .oh_name .on {color: red;}
        .oncolor{
            color: #0f0;
        }
        .oh_look {
            height: 26px;
            background-color: #F90;
            line-height: 26px;
            text-align: center;
            display: block;
            color: #fff;
            margin: 3px auto 0;
            border-radius: 4px;
            width: 120px;
        }

        .problem_feedback {overflow: hidden;margin: 8px 0;}
        .problem_feedback li {width: 50%;box-sizing: border-box;list-style: none;margin:0 auto;}
        .problem_feedback li a {
            border-radius: 5px;
            text-align: center;
            height: 36px;
            line-height: 36px;
            color: #fff;
            margin: 0 5px;
            display: block;
        }
        .problem_feedback a.btn_back {
            background-color: #cdcdcd;
        }
        .problem_feedback a.after_sales_link {
            background-color: #f66;
        }
        .del_lis{
            width:20px;
            height:20px;
            display: inline-block;
            background-image:url('__PUBLIC__/images/public/del.png');
            background-repeat: no-repeat;
            background-size:100% 100%;
            vertical-align:middle;
        }
    </style>
</head>
<body>
    <div class="zm_banner">
        <a href="<!--{:U('Bzcy/index','',false)}-->">
         <img src="__PUBLIC__/images/bzjp_img/banner-vivo.png" width="100%"/>
        </a>
    </div>

    <div class="public_orders_search">
        <div class="public_os_info">温馨提示：请输入订单号进行订单查询</div>
        <div class="public_os_form">

            <form id="form_select" class="J_ajaxForm" action="<!--{:U('Index/select','',false)}-->" method="post">
                <input type="text" name="keyword" nolocal="true" placeholder="订单号" class="input">
                <input  type="button" value="查询" class="J_ajax_submit_btn btn">
            </form>

        </div>
        <div class="order_history">
            <div class="oh_tit">订单历史</div>

            <foreach name="arr" item="value">
                <if condition="($value['typeid'] gt 60) or ($value['typeid'] lt 42) and ($value['typeid'] neq 20) and ($value['typeid'] neq 21) and ($value['typeid'] neq 24) and ($value['typeid'] neq 37) and ($value['typeid'] neq 100)">
                    <if condition="($value['status'] neq 1) and ($value['typeid'] neq 40)">
                        <div class="oh_list"><div class="oh_box"><div class="oh_name">
                            <span>测算名：</span><!--{$value['username']}--> 的 <if condition="$value['typeid'] eq 0">八字精批<elseif condition="$value['typeid'] eq 1"/>八字合婚<elseif condition="$value['typeid'] eq 13"/>紫薇斗数<elseif condition="$value['typeid'] eq 14"/>流年运程<elseif condition="$value['typeid'] eq 15"/>测终生运
                            <elseif condition="$value['typeid'] eq 16"/>婚缘走势<elseif condition="$value['typeid'] eq 17"/>八字事业运<elseif condition="$value['typeid'] eq 18"/>八字财运<elseif condition="$value['typeid'] eq 19"/>婚姻测算<elseif condition="$value['typeid'] eq 25"/>恋爱桃花运
                            <elseif condition="$value['typeid'] eq 26"/>一对一亲算<elseif condition="$value['typeid'] eq 27"/>姓名测算<elseif condition="$value['typeid'] eq 28"/>宝宝起名<elseif condition="$value['typeid'] eq 29"/>星座测算<elseif condition="$value['typeid'] eq 30"/>剖腹产
                            <elseif condition="$value['typeid'] eq 31"/>本命佛<elseif condition="$value['typeid'] eq 32"/>数字解析<elseif condition="$value['typeid'] eq 33"/>名人八字<elseif condition="($value['typeid'] eq 34) or ($value['typeid'] eq 41)"/>流年运程<elseif condition="$value['typeid'] eq 38"/>每月运势
                            <elseif condition="$value['typeid'] eq 61"/>双色球<elseif condition="$value['typeid'] eq 63"/>八字婚姻<elseif condition="$value['typeid'] eq 64"/>十年大运<elseif condition="$value['typeid'] eq 65"/>六道轮回<elseif condition="$value['typeid'] eq 66"/>姓名灵数<else /></if> 测算</div>
                            <div class="oh_name"><span>订单号：</span><!--{$value['ordernum']}--></div>
                            <div class="oh_name"><span>状态：</span><b class="on">未付费</b></div>
                            <!--<div class="oh_name"><i onclick="return del('&lt;!&ndash;{$value['ordernum']}&ndash;&gt;')" class="del_lis"></i></div>-->
                            <if condition="$value['typeid'] eq 0"><a class="oh_look" href="<!--{:U('Bzjp/bzjp_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 1"/><a class="oh_look" href="<!--{:U('Bzhh/bzhf_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 13"/><a class="oh_look" href="<!--{:U('Zwds/zwds_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 14"/><a class="oh_look" href="<!--{:U('Lnyc/lnyc_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 15"/><a class="oh_look" href="<!--{:U('Czsy/czsy_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 16"/><a class="oh_look" href="<!--{:U('Hyzs/hyzs_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 17"/><a class="oh_look" href="<!--{:U('Bzsy/bzsy_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 18"/><a class="oh_look" href="<!--{:U('Bzcy/bzcy_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 19"/><a class="oh_look" href="<!--{:U('Hycs/hycs_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 25"/><a class="oh_look" href="<!--{:U('Lath/lath_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 27"/><a class="oh_look" href="<!--{:U('Xmcs/xmcs_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 28"/><a class="oh_look" href="<!--{:U('Bbqm/bbqm_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 29"/><a class="oh_look" href="<!--{:U('Xzcs/xzcs_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 30"/><a class="oh_look" href="<!--{:U('Pfc/pfc_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 31"/><a class="oh_look" href="<!--{:U('Bzjpbmf/bzjp_bmf_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 32"/><a class="oh_look" href="<!--{:U('Szjx/szjx_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 33"/><a class="oh_look" href="<!--{:U('Mrbz/mrbz_zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 34"/><a class="oh_look" href="<!--{:U('Lnyc2019/zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 38"/><a class="oh_look" href="<!--{:U('Myys/zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 41"/><a class="oh_look" href="<!--{:U('Lnyc2020/zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 61"/><a class="oh_look" href="<!--{:U('DoubleColour/zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 63"/><a class="oh_look" href="<!--{:U('Bzhy/zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 64"/><a class="oh_look" href="<!--{:U('Sndy/zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 65"/><a class="oh_look" href="<!--{:U('Sssd/zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 66"/><a class="oh_look" href="<!--{:U('Xmls/zhifu','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <else />未知</if>

                        </div>
                        </div>
                        <elseif condition="($value['status'] neq 1) and ($value['typeid'] eq 40) "/>
                        <elseif condition="$value['typeid'] eq 100"/>
                        <else />
                        <div class="oh_list"><div class="oh_box"><div class="oh_name">
                            <span>测算名：</span><!--{$value['username']}--> 的 <if condition="$value['typeid'] eq 0">八字精批<elseif condition="$value['typeid'] eq 1"/>八字合婚<elseif condition="$value['typeid'] eq 13"/>紫薇斗数<elseif condition="$value['typeid'] eq 14"/>流年运程<elseif condition="$value['typeid'] eq 15"/>测终生运
                            <elseif condition="$value['typeid'] eq 16"/>婚缘走势<elseif condition="$value['typeid'] eq 17"/>八字事业运<elseif condition="$value['typeid'] eq 18"/>八字财运<elseif condition="$value['typeid'] eq 19"/>婚姻测算<elseif condition="$value['typeid'] eq 25"/>恋爱桃花运
                            <elseif condition="$value['typeid'] eq 26"/>一对一亲算<elseif condition="$value['typeid'] eq 27"/>姓名测算<elseif condition="$value['typeid'] eq 28"/>宝宝起名<elseif condition="$value['typeid'] eq 29"/>星座测算<elseif condition="$value['typeid'] eq 30"/>剖腹产
                            <elseif condition="$value['typeid'] eq 31"/>本命佛<elseif condition="$value['typeid'] eq 32"/>数字解析<elseif condition="$value['typeid'] eq 33"/>名人八字<elseif condition="($value['typeid'] eq 34) or ($value['typeid'] eq 41)"/>流年运程<elseif condition="$value['typeid'] eq 38"/>每月运势
                            <elseif condition="$value['typeid'] eq 40"/>每日牌运<elseif condition="$value['typeid'] eq 61"/>双色球<elseif condition="$value['typeid'] eq 63"/>八字婚姻<elseif condition="$value['typeid'] eq 64"/>十年大运<elseif condition="$value['typeid'] eq 65"/>六道轮回<elseif condition="$value['typeid'] eq 66"/>姓名灵数<else />未知</if> 测算</div>
                            <div class="oh_name"><span>订单号：</span><!--{$value['ordernum']}--></div>
                            <div class="oh_name"><span>状态：</span><b class="oncolor">已付费</b></div>
                            <if condition="$value['typeid'] eq 0"><a class="oh_look" href="<!--{:U('Bzjp/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 1"/><a class="oh_look" href="<!--{:U('Bzhh/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 13"/><a class="oh_look" href="<!--{:U('Zwds/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 14"/><a class="oh_look" href="<!--{:U('Lnyc/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 15"/><a class="oh_look" href="<!--{:U('Czsy/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 16"/><a class="oh_look" href="<!--{:U('Hyzs/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 17"/><a class="oh_look" href="<!--{:U('Bzsy/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 18"/><a class="oh_look" href="<!--{:U('Bzcy/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 19"/><a class="oh_look" href="<!--{:U('Hycs/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 25"/><a class="oh_look" href="<!--{:U('Lath/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 26"/><a class="oh_look" href="<!--{:U('Bzjp/payzfEnd','',false)}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 27"/><a class="oh_look" href="<!--{:U('Xmcs/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 28"/><a class="oh_look" href="<!--{:U('Bbqm/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 29"/><a class="oh_look" href="<!--{:U('Xzcs/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 30"/><a class="oh_look" href="<!--{:U('Pfc/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 31"/><a class="oh_look" href="<!--{:U('Bzjp/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 32"/><a class="oh_look" href="<!--{:U('Szjx/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 33"/><a class="oh_look" href="<!--{:U('Mrbz/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 34"/><a class="oh_look" href="<!--{:U('Lnyc2019/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 38"/><a class="oh_look" href="<!--{:U('Myys/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 40"/><a class="oh_look" href="<!--{:U('Recreation/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 41"/><a class="oh_look" href="<!--{:U('Lnyc2020/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 61"/><a class="oh_look" href="<!--{:U('DoubleColour/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 63"/><a class="oh_look" href="<!--{:U('Bzhy/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 64"/><a class="oh_look" href="<!--{:U('Sndy/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 65"/><a class="oh_look" href="<!--{:U('Sssd/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <elseif condition="$value['typeid'] eq 66"/><a class="oh_look" href="<!--{:U('Xmls/jieguoye','',false)}-->?ordernum=<!--{$value['ordernum']}-->">点击查看</a>
                                <else />未知</if>
                        </div>
                        </div>
                    </if>
                    <else />
                </if>

                <if condition="($value['typeid'] lt 61) and ($value['typeid'] gt 41)">
                    <if condition="($value['status'] eq 1)">
                        <div class="oh_list"><div class="oh_box"><div class="oh_name">
                            <span>测算名：</span><!--{$value['username']}--> 的 <!--{$value['name']}--> 测算</div>
                            <div class="oh_name"><span>订单号：</span><!--{$value['ordernum']}--></div>
                            <div class="oh_name"><span>状态：</span><b class="oncolor">已付费</b></div>
                            <a class="oh_look" href="https://hy.yixueqm.com/ysyc/index.php/index/Ysyc/jieguoye?orderid=<!--{$value['ordernum']}-->">点击查看</a>
                        </div>
                        </div>
                        <else />
                        <div class="oh_list"><div class="oh_box"><div class="oh_name">
                            <span>测算名：</span><!--{$value['username']}--> 的 <!--{$value['name']}--> 测算</div>
                            <div class="oh_name"><span>订单号：</span><!--{$value['ordernum']}--></div>
                            <div class="oh_name"><span>状态：</span><b class="on">未付费</b></div>
                        </div>
                        </div>
                    </if>

                    <else />
                </if>
            </foreach>


            <foreach name="arr" item="value">
                <if condition="$value['typeid'] eq 100">
                    <if condition="$value['status'] neq 1">
                        <div class="oh_list"><div class="oh_box"><div class="oh_name">
                            <span>测算名：</span><!--{$value['name']}--> 测算</div>
                            <div class="oh_name"><span>订单号：</span><!--{$value['orderid']}--></div>
                            <div class="oh_name"><span>状态：</span><b class="on">未付费</b></div>
                            <a class="oh_look" href="<!--{$value['url']}-->">点击查看</a>
                        </div>
                        </div>
                        <else />
                        <div class="oh_list"><div class="oh_box"><div class="oh_name">
                            <span>测算名：</span><!--{$value['name']}--> 测算</div>
                            <div class="oh_name"><span>订单号：</span><!--{$value['orderid']}--></div>
                            <div class="oh_name"><span>状态：</span><b class="oncolor">已付费</b></div>
                            <a class="oh_look" href="<!--{$value['url']}-->">点击查看</a>
                        </div>
                        </div>
                    </if>
                    <else />
                </if>
            </foreach>

        </div>
        <ul class="problem_feedback">
            <!--<li><a class="after_sales_link" href="javascript:;" hidetxt="问题反馈">问题反馈</a></li>-->
            <li><a href="javascript:;" onclick="history.go(-1);" class="btn_back">返回</a></li>
        </ul>
    </div>
<script src="__PUBLIC__/js/jquery.min.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script>

    $('.btn').on('click',function(){
        if($('.input').val() == ''){
            layer.msg('请输入查询内容');
            return false;
        }
        var orderid=$('.input').val();
        $.getJSON("<!--{:U('Index/select','',false)}-->?keyword="+orderid,{number:1},function(data){
            if(data==1){
                // 查询失败
                setTimeout(function(){
                    layer.closeAll('loading');
                    layer.msg('该订单不存在或未支付');
                },500);
            }else{
                // 查询成功
        setTimeout(function(){
             layer.closeAll('loading');
             layer.msg('查询成功', {icon: 1});
            setTimeout(function(){
                document.getElementById('form_select').submit();
            },1000);
        },500);
            }
        });

    });

//    function del(data){
//        layer.confirm('您确定删除该订单吗？', {
//            btn: ['确定','取消'] //按钮
//        }, function(){
//            layer.msg('订单已删除', {icon: 1});
//            setTimeout(function(){
//                location.href="<!--{:U('Index/delete','',false)}-->?orderid="+data;
//            },1500);
//        });
//    }

    var orderid='<!--{$orderid}-->';
    var csName='<!--{$csName}-->';
    var csUrl='<!--{$csUrl}-->';

    if(orderid && csName){
        setInterval(function(){
            $.getJSON("<!--{:U('Index/selectLoop','',false)}-->",{orderid:orderid},function(data){
                if(data){
                    console.log(data);
                    if(csName=='YSYC'){
                        location.href='https://hy.yixueqm.com/ysyc/index.php/index/Ysyc/jieguoye?orderid='+orderid;
                    }else{
                        location.href=csUrl;
                    }
                }else{
                    console.log(data);
                }
            });
        },1500);
    }


</script>
</body>
</html>